﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Init {
    import flash.events.*;
    import Engine.Init.*;
    import Modules.stats.helpers.*;
    import Modules.stats.types.*;

    public class StatsInit extends InitializationAction {

        public static const INIT_ID:String = "StatsInit";

        private var m_loginStatsHelper:LoginStatsHelper;

        public function StatsInit(_arg1:InitializationManager){
            super(INIT_ID);
            this.m_loginStatsHelper = new LoginStatsHelper(_arg1);
            addDependency(TransactionsInit.INIT_ID);
            addDependency(UIInit.INIT_ID);
        }
        override public function execute():void{
            this.m_loginStatsHelper.register(Global.player, StatsCounterType.PLAYER_COUNTER);
            this.m_loginStatsHelper.register(Global.franchiseManager, StatsCounterType.FRANCHISES);
            this.m_loginStatsHelper.register(Global.world, StatsCounterType.PLAYER_COUNTER);
            this.m_loginStatsHelper.register(Global.world.citySim, StatsCounterType.PLAYER_COUNTER);
            this.m_loginStatsHelper.init();
            dispatchEvent(new Event(Event.COMPLETE));
        }

    }
}//package Init 
